package com.yupi.yudada;

import org.springframework.util.DigestUtils;

import static com.yupi.yudada.service.impl.UserServiceImpl.SALT;

/**
 * 密码加密
 * 修改到数据库即可
 */
public class Main {
    public static void main(String[] args) {
        // 2. 加密
        String encryptPassword = DigestUtils.md5DigestAsHex((SALT + "123456").getBytes());
        System.out.println(encryptPassword);  // 1442de8d3dfff7f35f2a5f7c108b02b6
    }
}
